﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerResolveBrowse.aspx.cs" Inherits="UI_Orders_CustomerResolveBrowse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单产品维护</title>
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../../js/common.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../js/jquery.autocomplete.js" type="text/javascript"></script>
    <link href="../../css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.name = "win";
        $(function () {
            var fsId = $("#txtfsId").val();
            $('#txtUserCode').autocomplete('../../TableHanders.aspx?act=q&tid=1018&type=2', {
                minChars: 1, //minChars表示在自动完成激活之前填入的最小字符
                max: 10, //max表示列表里的条目数
                mustMatch: false, //mustMatch表示必须匹配条目，也就是在文本框里输入的内容，必须是data参数里的数据，如果不匹配，文本框就被清空
                matchContains: true, //表示包含匹配，也就是只要data数据里面有关键字就显示，不管它在什么位置，比如：google,omg;如果输入o,两个都显示
                scrollHeight: 100, //定高
                width: 500,
                matchCase: 1,
                matchSubset: 0,
                formatItem: function (data, i, total) {
                    return data[0] + '  ,   ' + data[1];
                },
                formatMatch: function (data, i, total) {
                    return data[1];
                },
                formatResult: function (data) {
                    $("#txtProductId").val(data[0]);
                    alert(data[1]);
                    return data[1];
                }
            });
        });
    </script>
</head>
<body>
<div id = "tt">
    <form id="form1" runat="server" target="win">
    <input type="hidden" runat="server" id="txtfsId" />
    <div style="height:240px;">
    <table>
        <tr>
            <td>规格:</td><td><input type="text" id= "txtUserCode" runat="server" style="width:300px"  class="easyui-validatebox" required = "true"/></td>
        </tr> 
        <tr>
            <td>数量:</td><td><input type="text" id= "txtQty" runat="server" style="width:300px"  class="easyui-numberbox" required = "true"/></td>
        </tr>
    </table>
    </div>
     <div style="text-align:right;height:30px;line-height:30px; padding:10px; width:600px;">
        <asp:LinkButton runat="server" ID = "btnSend" CssClass = "easyui-linkbutton" 
                iconCls="icon-ok" Text = "OK" onclick="ButtonSend_Click" OnClientClick = "WaitBox.Show();return $('tt').form('validate');"></asp:LinkButton>
			<a id="btnkhtkClose" class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick = "javascript:window.close();void(0);">Close</a>
	</div>
    </form>
</div>
</body>
</html>
